﻿#ifndef WIDGET_H
#define WIDGET_H

#include "common/baseeditor.h"
#include "unitmanager.h"
#include "additem.h"

namespace Ui {
class Widget;
}

class Widget : public BaseEditor
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

    void generateMenu();
    void newItem();
    void updateUnits();
    void showManager();

private slots:
    void on_piece_returnPressed();

private:
    Ui::Widget *ui;

    QStandardItemModel *itemModel;
};

#endif // WIDGET_H
